package com.yunxin.download.server.infra.support.filed.transfer.impl;

import com.yunxin.download.server.service.extenal.FileExportConfigDTO;
import com.yunxin.download.server.infra.support.filed.transfer.FieldTransfer;


/**
 * @author zero°
 * @since 2023-06-15
 */
public class IntegerTransfer implements FieldTransfer<Long, Object> {
    @Override
    public Long transfer(Object value, FileExportConfigDTO.FieldFormat format) {
        final String valueStr = value.toString();
        return Long.parseLong(valueStr);
    }
}
